package com.iot.service;

import java.util.List;

public interface BaseService<T> {

    int getRecordCount(String sWhere);

    int insert(T t) throws Exception;

    void update(T t) throws Exception;

    void deleteById(int id) throws Exception;

    public T single(Integer id);

    public List<T> fetch(String sWhere);

//    List<T> fetchByPage(Map<String, Object> map);
//
//    Integer countData(Map<String, Object> map);
}
